function foo(x = 1, y = 1) {
    return x + y;
}
console.log(foo(3,4));
console.log(foo(3));